package com.company.finance.ddd.domain.core.voucher.rule;

import com.company.finance.ddd.domain.core.voucher.enums.VoucherSubjectEnum;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

/**
 *
 * @author wanglei
 * @version $$Id: RuleItem, v 0.1 2021/2/3 14:50 wanglei Exp $$
 */
@Builder
@Getter
@ToString
public class RuleItem {

    private final VoucherSubjectEnum debitSubject;
    private final String             debitDigest;
    private final VoucherSubjectEnum creditSubject;
    private final String             creditDigest;

    private RuleItem(VoucherSubjectEnum debitSubject, String debitDigest, VoucherSubjectEnum creditSubject,
                     String creditDigest) {
        this.debitSubject = debitSubject;
        this.debitDigest = debitDigest;
        this.creditSubject = creditSubject;
        this.creditDigest = creditDigest;
    }
}
